USE [SRD]
GO

/****** Object:  Table [dbo].[EMPRESA_CARGO]    Script Date: 05/14/2011 10:50:12 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[EMPRESA_CARGO](
	[EMPRESA_CARGO_ID] [int] IDENTITY(1,1) NOT NULL,
	[EMPRESA_ID] [int] NOT NULL,
	[CARGO_ID] [int] NOT NULL,
 CONSTRAINT [PK_EMPRESA_CARGO] PRIMARY KEY CLUSTERED 
(
	[EMPRESA_CARGO_ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[EMPRESA_CARGO]  WITH CHECK ADD  CONSTRAINT [FK_EMPRESA_CARGO_CARGO] FOREIGN KEY([CARGO_ID])
REFERENCES [dbo].[CARGO] ([CARGO_ID])
GO

ALTER TABLE [dbo].[EMPRESA_CARGO] CHECK CONSTRAINT [FK_EMPRESA_CARGO_CARGO]
GO

ALTER TABLE [dbo].[EMPRESA_CARGO]  WITH CHECK ADD  CONSTRAINT [FK_EMPRESA_CARGO_EMPRESA] FOREIGN KEY([EMPRESA_ID])
REFERENCES [dbo].[EMPRESA] ([EMPRESA_ID])
GO

ALTER TABLE [dbo].[EMPRESA_CARGO] CHECK CONSTRAINT [FK_EMPRESA_CARGO_EMPRESA]
GO


